package com.woniuxy.book.service;

import com.woniuxy.book.entity.OrderInfo;
import com.woniuxy.book.entity.PageInfo;
import com.woniuxy.book.param.orderinfo.OrderParam;
import com.woniuxy.book.param.orderinfo.PagePayParam;
import com.woniuxy.book.service.dto.OrderInfoDTO;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author li
 * @since 2024年2月09日
 */
public interface OrderInfoService{

    OrderInfoDTO order(OrderParam param) throws Exception;

    String pagePay(PagePayParam param) throws Exception;

    PageInfo selectOrders(Integer pageNum, Integer pageSize, Integer orderState,Integer userId,String role);

    void handlerOrder(Map<String, String> params) throws Exception;

    void deleteOrder(String orderNum, Integer userId);

    OrderInfo findSingleOrder(String orderNum,Integer userId);
}
